<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Admin login</title>
    <link href="/css/bootstrap.css" rel='stylesheet' type='text/css' />
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <!-- Custom Theme files -->
    <link href="/css/style.css" rel='stylesheet' type='text/css' />
    <!-- Custom Theme files -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Hotel Deluxe Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!--webfont-->
    <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    <script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/js/login.js"></script>
    <script src="/js/jquery.easydropdown.js"></script>
    <script src="/js/jquery-1.11.1.min.js"></script>
    <!--Animation-->
    <script src="/js/wow.min.js"></script>
    <link href="/css/animate.css" rel='stylesheet' type='text/css' />
    <script>
        new WOW().init();
    </script>
</head>
<body>
<div class="header">
    <div class="col-sm-8 header-left">
        <div class="logo">
            <a href="index.html"><img src="/images/logos.png" alt=""/></a>
        </div>
        <div class="menu">
            <a class="toggleMenu" href="#"><img src="/images/nav.png" alt="" /></a>
            <ul class="nav" id="nav">
                <li class="active"><a href="#">个人中心</a></li>

                <li><a th:if="${session.admin==null}" href="#"></a></li>
                <li><a th:if="${session.admin}" th:href=" '/hotel/list?adminId=' + ${session.admin.adminId}">管理酒店</a></li>
                <li><a th:if="${session.admin==null}" href="#"></a></li>
                <li><a th:if="${session.admin}" th:href=" '/user/list?adminId=' + ${session.admin.adminId}">管理用户</a></li>
                <div class="clearfix"></div>
            </ul>
            <script type="text/javascript" src="js/responsive-nav.js"></script>
        </div>
        <!-- start search-->
        <!----search-scripts---->
        <script src="/js/classie.js"></script>
        <script src="/js/uisearch.js"></script>
        <script>
            //
        </script>
        <!----//search-scripts---->
        <div class="clearfix"></div>
    </div>
    <div class="col-sm-4 header_right">
        <div id="loginContainer"><a href="#" id="loginButton"><img src="/images/login.png">
            <span th:if="${session.admin==null}">登陆</span>
            <a href="/info"><span th:if="${session.admin}" th:text="${session.admin.displayName}"></span></a>
            <input type="button" id="logout" value="注销" onclick="userlogout()"  th:if="${session.admin}">
        </a>
            <div id="loginBox">
                <form id="loginForm" action="admin/login" method="post">
                    <fieldset id="body">
                        <fieldset>
                            <label>用户名</label>
                            <input type="text" name="username" id="username">
                        </fieldset>
                        <fieldset>
                            <label>密码</label>
                            <input type="password" name="password" id="password">
                        </fieldset>
                        <!--<fieldset th:if="${loginFailure}">-->
                        <!--<label style="color: red">用户名或密码错误</label>-->
                        <!--</fieldset>-->
                        <input type="submit" id="login" value="登陆">
                        <!--<label for="checkbox"><input type="checkbox" id="checkbox"> <i>Remember me</i></label>-->
                    </fieldset>
                </form>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="clearfix"></div>
</div>
<div class="footer">
    <div class="container"></div>
    <div class="footer_top">
        <h3>&nbsp;</h3>
        <h3>四川大学酒店订购系统</h3>
        <h3>Team 22</h3>
    </div>
</div>
</html>